package com.ruoyi.production.service;

import com.ruoyi.production.domain.PlanModelInfo;
import com.ruoyi.production.domain.WorkOrderInfo;

import java.util.List;

/**
 * 工单Service接口
 *
 * @author ruoyi
 * @date 2022-09-01
 */
public interface IWorkOrderInfoService {
    /**
     * 查询工单
     *
     * @param id 工单主键
     * @return 工单
     */
    public WorkOrderInfo selectWorkOrderInfoById(Long id);

    /**
     * 查询工单列表
     *
     * @param workOrderInfo 工单
     * @return 工单集合
     */
    public List<WorkOrderInfo> selectWorkOrderInfoList(WorkOrderInfo workOrderInfo);

    /**
     * 新增工单
     *
     * @param workOrderInfo 工单
     * @return 结果
     */
    public int insertWorkOrderInfo(WorkOrderInfo workOrderInfo);

    /**
     * 修改工单
     *
     * @param workOrderInfo 工单
     * @return 结果
     */
    public int updateWorkOrderInfo(WorkOrderInfo workOrderInfo);

    /**
     * 批量删除工单
     *
     * @param ids 需要删除的工单主键集合
     * @return 结果
     */
    public int deleteWorkOrderInfoByIds(Long[] ids);

    /**
     * 删除工单信息
     *
     * @param id 工单主键
     * @return 结果
     */
    public int deleteWorkOrderInfoById(Long id);


    /**
     * 获取构件表格
     *
     * @param planModelInfo
     * @return
     */
    public List<PlanModelInfo> getPlanModelInfo(PlanModelInfo planModelInfo);

    public List<PlanModelInfo> getCompomentList(PlanModelInfo planModelInfo);

}
